"""
队列相关
"""
from collections import deque


def deque_invoke():
    # 创建一个deque
    my_deque = deque([1, 2, 3, 4, 5])
    # 弹出所有元素并打印
    while my_deque:
        popped_element = my_deque.popleft()
        print("弹出的元素:", popped_element)
    print("队列现在为空:", my_deque)


if __name__ == "__main__":
    deque_invoke()
    pass